{% extends 'layoutTablas.html.twig' %}

{% block portada %}{% trans %}jugadores{% endtrans %}{% endblock %}

{% block pagina %}
    {% embed 'reglon.html.twig' with {'size': 12, 'style': "default"} %}
        {% block panelhead %}
            {% trans %}tus.jugadores{% endtrans %}
        {% endblock %}

        {% block panelbody %}
        <div class="table-responsive">
            <table class="table table-striped table-bordered table-hover" id="tablaListado">
                <thead>
                    <tr>
                        <th>{%trans%}nombre{%endtrans%}</th>
                        <th>{%trans%}apellido{%endtrans%}</th>
                        <th>{%trans%}email{%endtrans%}</th>
                        <th>{%trans%}username{%endtrans%}</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                {% for usuario in usuarios %}
                    <tr>
                        <td>{{usuario.nombre}}</td>
                        <td>{{usuario.apellido}}</td>
                        <td>{{usuario.email}}</td>
                        <td>{{usuario.username}}</td>
                        <td>
                            <a href="{{ path('usuario_ver', {'usuario':usuario}) }}">{%trans%}ver{%endtrans%}</a>
                        </td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
        <!-- /.table-responsive -->
        {% endblock %}
    {% endembed %}
{% endblock %}